package com.qingsong.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;



/**
 * @author qingsong
 */
@Schema(description = "角色修改DTO")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AssetsUpdateDTO implements Serializable {

    @NotNull(message = "资产主键不能为空")
    @Schema(description = "资产主键")
    private Long id;

    @NotEmpty(message = "资产名称不能为空")
    @Schema(description = "资产名称")
    private String title;

    @Schema(description = "资产图片")
    private String picture;

    @NotNull(message = "资产单价不能为空")
    @Schema(description = "资产单价")
    private double price;

    @NotEmpty(message = "资产单价-单位不能为空")
    @Schema(description = "资产单价-单位")
    private String priceUnit;

    @NotNull(message = "剩余数量不能为空")
    @Schema(description = "剩余数量")
    private Integer stock;

    @NotNull(message = "总计数量不能为空")
    @Schema(description = "总计数量")
    private Integer total;

    @NotEmpty(message = "总计库存不能为空")
    @Schema(description = "总计库存-单位")
    private String stockUnit;

    @Schema(description = "资产描述")
    private String info;

    @Schema(description = "逻辑字段")
    private Integer deleted;

}

